package com.fkdx.dao.mapper;

import com.fkdx.dao.condition.UserCondition;
import com.fkdx.dao.entity.User;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

@Repository()
public interface UserMapper {

    int deleteByPrimaryKey(Long id);

    int insert(User record);

    User selectByPrimaryKey(Long id);

    int updateByPrimaryKey(User record);
    
    int updateSelective(User record);

    List<User> selectAll(UserCondition condition);

    int updateByIds(@Param("ids") List<Long> ids, @Param("modificationUserId") Long modificationUserId, @Param("modificationUserName") String modificationUserName);

    User selecUserByUserName(@Param("userName") String userName);

    List<User> selectByRoleId(Long roleId);

    List<User> queryList(UserCondition condition);
}
